package com.pansoft.openplanet.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 手机联系人
 * Created by will on 18-3-21.
 */

public class Contact implements Serializable{

    private String name;
    private String avatar;
    private String id;

    private boolean isRegister;

    /**
     * 显示数据拼音的首字母
     **/
    private String sortLetters;
    private List<Phone> phones;

    public Contact() {
    }

    public class Phone implements Serializable{

        private String phone;
        private String type;//1住宅2手机3单位
        private String phoneMd5;

        public Phone() {
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getPhoneMd5() {
            return phoneMd5;
        }

        public Phone setPhoneMd5(String phoneMd5) {
            this.phoneMd5 = phoneMd5;
            return this;
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<Phone> getPhones() {
        return phones;
    }

    public void setPhones(List<Phone> phones) {
        this.phones = phones;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSortLetters() {
        return sortLetters;
    }

    public void setSortLetters(String sortLetters) {
        this.sortLetters = sortLetters;
    }

    public boolean isRegister() {
        return isRegister;
    }

    public Contact setRegister(boolean register) {
        isRegister = register;
        return this;
    }
}
